<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div>
<ul>
<li><a target="_slef" href="<%=request.getContextPath()%>" class="">主页</a></li>
<li><a target="_slef" href="<%=request.getContextPath()%>" class="">关于我们</a></li>
<li><a target="_slef" href="<%=request.getContextPath()%>/books/all.htm" class="">图书列表</a>
</ul>

<ul>
<c:if test="${empty loginuser}">
<li><a target="_self" href="<%=request.getContextPath()%>/user/login">登录</a></li>
<li><a target="_self" href="<%=request.getContextPath()%>/user/regist">注册</a></li>
</c:if>

<c:if test="${not empty loginuser}">
<li><a target="_self" href="<%=request.getContextPath()%>/user/${loginuser.id}.htm">${loginuser.name}</a></li>
<li><a target="_self" href="<%=request.getContextPath()%>/user/loginout">退出</a></li>
</c:if>
</ul>
</div>
<div>


<div>
<ul>
<li><a target="_self" href="<%=request.getContextPath()%>/fav/list.htm">我的书架(#)</a></li>
<li><a target="_self" href="<%=request.getContextPath()%>/shopping/car.htm">购物车(#)</a></li>
</ul>
</div>
<hr style="border-style: solid none none none">
</div>
